Skip to content

fix: prevent profile metadata text from collapsing#474

Open
GulshanJha00 wants to merge 8 commits into
NextCommunity:mainfrom
GulshanJha00:fix-tailwind-flex-layout
Open

fix: prevent profile metadata text from collapsing#474
GulshanJha00 wants to merge 8 commits into
NextCommunity:mainfrom
GulshanJha00:fix-tailwind-flex-layout

Conversation

@GulshanJha00
Copy link
Copy Markdown
Contributor

Fixes #468

Added a minimum width to the flex container to prevent profile metadata
from collapsing into narrow vertical text stacks on smaller widths.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request adds a new user profile for Gulshan and updates the profile card layout in src/index.njk with a minimum width constraint. The review feedback identifies a potential layout overflow issue on narrow viewports caused by the specific minimum width and suggests using a smaller value or enabling flex wrapping. Additionally, the reviewer noted trailing whitespace and a missing trailing newline in the newly added YAML file.

Comment thread src/index.njk Outdated
Comment thread src/users/GulshanJha00.yaml Outdated
@jbampton jbampton self-assigned this May 3, 2026
@jbampton jbampton added this to the Turbo milestone May 3, 2026
@jbampton jbampton moved this to In progress in Next May 3, 2026
@jbampton
Copy link
Copy Markdown
Member

jbampton commented May 3, 2026

Please resolve the conflicts

@jbampton jbampton requested a review from Copilot May 11, 2026 12:23
@jbampton
Copy link
Copy Markdown
Member

/gemini review

@jbampton jbampton moved this from In progress to Review in progress in Next May 11, 2026
@jbampton jbampton added the good first issue Good for newcomers label May 11, 2026
Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request updates the person card layout in src/index.njk by adding a minimum width to the name and role container. The review feedback correctly identifies that the hardcoded 150px value could lead to layout overflow on small mobile devices and suggests using a standard Tailwind spacing class like min-w-32 to ensure better responsiveness and consistency with the CSS framework.

Comment thread src/index.njk
<div class="p-8">
<div class="flex justify-between items-start gap-4">
<div class="flex-1">
<div class="flex-1 min-w-[150px]">
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The hardcoded minimum width of 150px may cause layout overflow on small mobile devices. On a 320px wide screen, the card's p-8 padding (64px total) leaves only 256px of content space. Combining this 150px div with the sibling's 112px (7rem) and the 16px (gap-4) results in a total width of 278px, exceeding the container. Consider using a standard Tailwind spacing value like min-w-32 (128px) to ensure the layout fits on small screens while still preventing the metadata from collapsing.

            <div class="flex-1 min-w-32">
References
  1. Adhere to the project's existing CSS framework (Tailwind CSS) conventions by using the standard spacing scale instead of arbitrary values, and ensure responsive layouts do not overflow on small screens.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR addresses issue #468 by adding a minimum width constraint to the name/role flex item on the index page, preventing the adjacent metadata block from being squeezed into overly narrow word-by-word stacks on small widths.

Changes:

  • Add min-w-[150px] to the left (flex-1) container within the user card header row to preserve a more balanced layout at tight widths.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Review in progress

Development

Successfully merging this pull request may close these issues.

Tailwind CSS index page improvements

3 participants